//导入model01.js
var {add,add2} = require("./model01")

var Vue = require("./vue")

var Vm = new Vue({
    el: '#app',
    data: {
        name:'朝歌世界',
        num1:0,
        num2:0,
        result:0,
        url:'http://www.baidu.com',
        size:33
    },
    methods:{
        change:function () {
            // this.result = Number.parseInt(this.num1)+Number.parseInt(this.num2)
            this.result = add(Number.parseInt(this.num1),Number.parseInt(this.num2))
            // alert("计算结果是:"+this.result)
        }
    }
});